<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">    
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="icon" href="static/css/default/icon.png" type="image/x-icon" />
		<title>CSI员工之家</title>

		
		<link rel="stylesheet" href="login/css/font-awesome.min.css" />
		<link rel="stylesheet" href="js/metronic/plugins/simple-line-icons/css/simple-line-icons.css" />
		<link rel="stylesheet" href="js/metronic/plugins/animate.css/animate.min.css" />
		<link rel="stylesheet" href="js/metronic/plugins/toastr/toastr.min.css" />
		<link rel="stylesheet" href="js/metronic/plugins/bootstrap/css/bootstrap.css" />
		<link rel="stylesheet" href="js/metronic/plugins/app.css" />
		<link rel="stylesheet" href="js/metronic/plugins/theme.css" data-type="theme" />
		<link rel="stylesheet" href="js/metronic/plugins/cover.css" />
		<link rel="stylesheet" href="js/metronic/plugins/step.css" />
		<link rel="stylesheet" href="js/metronic/plugins/tabs/tabs.css" />
	
	</head>

	<body class="layout-fixed">
		<script language="JavaScript">
			var context="/hrm",__contextPath="/hrm",__extendOptions="main/options";
		</script>
		<div fragment="navbar" class="wrapper" role="navigation">
			<script type="text/javascript">
				var module = "09282248e3ed4fb4a7d3c1c8585a7eb0";
			</script>
			<nav class="navbar topnavbar" style="min-height:44px;" role="navigation" >
				<div class="navbar-header" style="width:20%;text-align: left;">
					<span class="navbar-brand navbar-brand-h" >
				
					   
		        		<div class="brand-text" style="padding-top: 3px;">
		        		    <img alt="" src="images/main/head/logo/LOGO.jpg">
							<span style="font-family:'Britannic Bold', 'Britannic';color:#3BC5BB;">CSI员工</span>
							<span style="font-family:'Segoe UI Emoji Bold', 'Segoe UI Emoji Normal', 'Segoe UI Emoji';color:#1D4474;"> </span>
							<span style="font-family:'Segoe UI Emoji Bold', 'Segoe UI Emoji Normal', 'Segoe UI Emoji';color:#FF9A4C;">之家</span>
						</div>
					</span>
				</div>

				<div class="sysMenu" style="display: none;">
					<ul>

					</ul>
				</div>
		<div class="nav-wrapper">
			<ul class="nav navbar-nav navbar-right">
				<li>
					<a>
						<span class="user-name-csdc">欢迎登录：${loginUser.username}</span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<img src="images/StatBar_time.gif">&nbsp;&nbsp;<span id="nowTime"></span>
					</a>
				</li>
		
				<li>
					<a class="menu-icons" title="修改密码" data-search-open="" data-title="修改密码" modal-toggle="modal" data-href="editPassword/editPassword.html" data-width="780" data-height="300">
						<em class="fa fa-gear main-op" style="font-size:13px">修改密码</em>
					</a>
				</li>
				<li>
					<a class="menu-icons" title="人脸注册" data-search-open="" data-title="人脸注册" modal-toggle="modal" data-href="user/face.html" data-width="780" data-height="500">
						<em class="fa fa-gear main-op" style="font-size:13px">人脸注册</em>
					</a>
				</li>
				<li class="dropdown">
					<a class="menu-icons" title="退出登录" data-no-persist="true" href="/logout">
						<!--<a class="menu-icons" title="退出登录" data-no-persist="true" href="logout.d">-->
						<em class="fa fa-power-off  main-op" style="font-size:13px">退出登录</em>
					</a>
				</li>
			</ul>
		</div>
		</nav>
		
		<aside class="aside">
		
			<div class="aside-inner">
			 
				<nav class="sidebar" data-sidebar-anyclick-close="">
				
					<ul class="nav" id="leftMenuNav">
						
					</ul>
				
				</nav>
				
			</div>
				
		</aside>
	
	
		<section id="content">
			<div id="funTab"></div>
		</section>
			
		</div>
		
		<script src="js/metronic/plugins/sidebar/sidebar.js"></script>
		<script src="js/metronic/plugins/jquery/dist/jquery.js"></script>
		<script src="js/metronic/plugins/jquery.form/jquery.form.min.js"></script>
		<script src="js/metronic/plugins/jquery/plugins/scrollbar/perfect-scrollbar.jquery.min.js"></script>
		<script src="js/metronic/plugins/layui/layui.js"></script>
		<script src="js/metronic/plugins/layui/layui-config.js"></script>
		<script src="js/metronic/plugins/bootstrap/dist/js/bootstrap.js"></script>
		<script src="js/metronic/plugins/modernizr/modernizr.custom.js"></script>
		<script src="js/metronic/plugins/jQuery-Storage-API/jquery.storageapi.js"></script>
		<script src="js/metronic/plugins/parsleyjs/dist/parsley.min.js"></script>
		<script src="js/metronic/plugins/toastr/toastr.min.js"></script>
		
		<script src="js/metronic/plugins/common/util.js"></script>
		<script src="js/metronic/plugins/app/app.js"></script>
		<script src="js/metronic/plugins/app/menu.js"></script>
		<script src="js/metronic/plugins/common/autoheight.js"></script>
		<script type="text/javascript" src="js/fkjava_timer.js"></script>
	<script type="text/javascript">
		    /** 文档加载完成后立即执行的方法 */
		    // var weeks = new Array();
			
		    $(function(){
		    	$("#nowTime").runTimer();
		
			})
			
		    
		    
		</script>
	</body>

	<script>
		var menutab={};
		var mainActiveId='home';
		var menus = [];
		var menuParent={};
		var bigDataMenus = null;
		var menuUserName="";
		var role = "${loginUser.role eq 1?'admin':'user'}";
		alert("您的身份是" + role);
		/**
		 * 加载左侧菜单1
		 */
		function loadMenu(){


			var json='[{"id": "1","auth":"all","name": "CSI员工之家","icon": null,"url": "","parentId": "",'
					+'"childs": [{"id": "11","auth":"all","name": "用户管理","icon": "/xingxing.png","url": "user/user.jsp","parentId": "1",'
					+'"childs": [{"id": "111","auth":"all","name": "用户查询","icon": "","url": "user/user.jsp","parentId": "11",'
					+'"childs": []},{"id": "112","auth":"admin","name": "添加用户","icon": "","url": "user/showAddUser.jsp","parentId": "11",'
					+'"childs": []}]},{"id": "12","auth":"all","name": "部门管理","icon": "/xingxing.png","url": "dept/dept.html","parentId": "1",'
					+'"childs": [{"id": "121","auth":"all","name": "部门查询","icon": "","url": "dept/dept.jsp","parentId": "12",'
					+'"childs": []},{"id": "122","auth":"admin","name": "添加部门","icon": "","url": "dept/showAddDept.jsp","parentId": "12",'
					+'"childs": []}]},{"id": "14","auth":"all","name": "职位管理","icon": "/xingxing.png","url": "job/job.html","parentId": "1",'
					+'"childs": [{"id": "141","auth":"all","name": "职位查询","icon": "","url": "job/job.jsp","parentId": "14",'
					+'"childs": []},{"id": "142","auth":"admin","name": "添加职位","icon": "","url": "job/showAddJob.jsp","parentId": "14",'
					+'"childs": []}]},{"id": "15","auth":"all","name": "员工管理","icon": "/xingxing.png","url": "employee/employee.jsp","parentId": "1",'
					+'"childs": [{"id": "151","auth":"all","name": "员工查询","icon": "","url": "employee/employee.jsp","parentId": "15",'
					+'"childs": []},{"id": "152","auth":"admin","name": "添加员工","icon": "","url": "employee/showAddEmployee.jsp","parentId": "15",'
					+'"childs": []}]},{"id": "16","auth":"all","name": "公告管理","icon": "/xingxing.png","url": "notice/notice.jsp","parentId": "1",'
					+'"childs": [{"id": "161","auth":"all","name": "公告查询","icon": "","url": "notice/notice.jsp","parentId": "16",'
					+'"childs": []},{"id": "162","auth":"admin","name": "添加公告","icon": "","url": "notice/showAddNotice.jsp","parentId": "16",'
					+'"childs": []}]},{"id": "17","auth":"all","name": "下载中心","icon": "/xingxing.png","url": "document/document.jsp","parentId": "1",'
					+'"childs": [{"id": "171","auth":"all","name": "文档查询","icon": "","url": "document/document.jsp","parentId": "17",'
					+'"childs": []},{"id": "172","auth":"admin","name": "上传文档","icon": "","url": "document/showAddDocument.jsp","parentId": "17","childs": []}]}]}]';
			// jquery的方法
			var jsonObj = $.parseJSON(json)

			var msg = [];
			for(var i =0 ;i < jsonObj.length;i++){
				msg[i] = jsonObj[i];
			}

			bigDataMenus = msg;
			showNav(msg);
			//默认显示第一个一级导航菜单的二级菜单。
			showSideBarByNav(bigDataMenus[0].id);







		}
		/**
		 * 根据导航菜单id显示左侧二级菜单
		 * @param {Object} navId
		 */
		function showSideBarByNav(navId) {
			$("#leftMenuNav").html("");
			for (var i = 0 ; i < bigDataMenus.length;i++) {
				if (navId == bigDataMenus[i].id) {
					menus = bigDataMenus[i].childs;
					var ul = $("#leftMenuNav")[0];
					for(var i=0;i<menus.length;i++){
						var m = menus[i];
						var menuId = "m-"+m.id;
						var tab = createOneMenu(m,menuId,m.childs!=null&&m.childs.length>0);
						menuParent[m.id]='';
						addChildMenu(m,tab)
						$(ul).append(tab);
					}
					return;
				}
			}
		}
		function firstMenuClick() {
			var a = findFirstMenu($("#leftMenuNav"));
			if (a.length>0) {
				a[0].click();
			}
		}

		/**
		 * 显示导航(一级)菜单
		 */
		function showNav(menus) {
			for (var i = 0 ; i < menus.length;i++) {
				//如果菜单的权限是“所有人”，或者权限是管理员同时登录用户是
				var li = $('<li>'+
						'<a class="sysMenuItem" id="'+menus[i].id+'">'+menus[i].name+'</a>'+
						'</li>');
				li.find("a").click(function() {
					var navId = $(this).attr("id");
					showSideBarByNav(navId);
					firstMenuClick();
				});
				$('.sysMenu ul').append(li);
			}
		}
		//获取第一个可以点击的左侧菜单。
		function findFirstMenu(ul) {
			if (ul.find('li>a[data-url]').length>0) {
				return $(ul.find('li>a[data-url]').children(0));
			} else {
				return null;
			}

			if (ul.find('li').length > 0) {
				var firstLi = $(ul.find('li')[0]);
				if(firstLi.find('ul').length>0) {//包含多个孩子
					return findFirstMenu($(firstLi.find('ul')[0]))
				} else {
					return firstLi.find('a');
				}
			} else {
				return null;
			}
		}

		/**
		 * 增加子菜单
		 * @param parentMenu
		 * @param parentEl
		 */
		function addChildMenu(parentMenu,parentEl){
			var childs = parentMenu.childs;
			if(childs!=null){
				var id = "m-"+parentMenu.id+'-ul'
				var ul = $("<ul>",{
					"id":id,
					"class":"nav sidebar-subnav  collapse"
				});
				$("<li>",{
					"class":"sidebar-subnav-header",
					"html":parentMenu.name
				}).appendTo(ul);
				for(var i=0;i<childs.length;i++){
					var m = childs[i];
					var menuId = "m-"+m.id;
					menuParent[m.id]=parentMenu.id;
					if(m.auth=='all' || m.auth=='admin' && role=="admin"){
						var tab = createOneMenu(m,menuId,false);
						tab.appendTo(ul);
					}
					$(parentEl).append(ul);
				}
			}
		}
		var begin=true;
		/**
		 * 渲染一个菜单
		 * @param m
		 * @param menuId
		 * @param hasChild
		 * @returns
		 */
		function createOneMenu(m,menuId,hasChild){
			var tab = null;
			var a;

			if(hasChild){

				tab = $("<li>",{"id":menuId,"data-title":m.name})
				a = $("<a>",{
					"data-toggle":"collapse",
					"href":"javascript:void(0);",
					"data-target":"#"+menuId+"-ul",
					"class":"menu-item collapsed"
				}).bind('click', function(event){
					$sidebar = $('.sidebar');
					var sidebarCollapse = $sidebar.find('.collapse');
					sidebarCollapse.filter('.in').removeClass("open");
					$sidebar.find("i").removeClass("open");
					sidebarCollapse.filter('.in').collapse('hide');
					var tarId = $(this).data("target");
					var tarEl = $(tarId)[0];
					var aEl = $(this)[0];



					if($(tarEl).hasClass("collapse")){
						$(aEl).find("i").addClass("open");
						$(tarEl).collapse('show');

					}else{
						$(aEl).find("i").removeClass("open");
						$(tarEl).collapse('hide');

					}



					event.stopPropagation();
				});
			}else{

				tab = $("<li>",{"id":menuId,"class":"menu-item","data-title":m.name})
				a = $("<a>",{
					"href":"javascript:void(0);",
					"data-id":m.id,
					"data-title":m.name,
					"data-url":m.url,
					"data-menuid":menuId
				}).bind("click",function(){

					menuItemClick.call(this);
				});
			}
			$("<em>",{
				"class":"menu-icon",
				"style":(m.icon==null||m.icon=='')?'':"background-image:url('/images"+m.icon+"')"
			}).appendTo(a);

			//先创建i标签，再创建span标签，解决火狐出现，小三角视觉上跑出a标签的bug 2018-03-20 - xugy
			if(hasChild){
				$("<i>",{
					"class":"fa fa-angle-right"
				}).appendTo(a);
			}

			$("<span>",{
				"text":m.name
			}).appendTo(a);




			tab.append(a);
			return tab;
		}
		/**
		 * 菜单点击功能
		 */
		function menuItemClick(){

			var id = $(this).data("id");
			var title = $(this).data("title");
			var url = $(this).data("url");
			var menuid = $(this).data("menuid");

			selectMenu(menuid);
			tabAdd(id,title,url,menuid);
		}
		/**
		 * 选中菜单
		 * @param menuid
		 */
		function selectMenu(menuid){

			var menuObj = $("#"+menuid);

			if(menuObj.length==0){
				return;
			}

			if(mainActiveId != null && mainActiveId != "" && menuid != null && menuid != ""){
				$("#"+mainActiveId).removeClass("active");
				mainActiveId = menuid;
			}
			$("#"+menuid).addClass("active");
		}

		/**
		 * 增加一个Tab页
		 * @param id
		 * @param title
		 * @param url
		 * @param activeId
		 * @param parentActiveId
		 */
		function tabAdd(id,title,url,icon,closable){


			menutab.removeAll();

			icon = (icon==undefined)?"":icon;
			closable = (closable==undefined)?true:false;
			menutab.appendTab({id:id,title:title,url:url,icon:icon,closable:closable});
		}





		(function(window, document, $, undefined){
			var $win;
			var $html;
			var $body;
			var $sidebar;
			var mq;

			$(function(){

				$win     = $(window);
				$html    = $('html');
				$body    = $('body');
				$sidebar = $('.sidebar');
				mq       = APP_MEDIAQUERY;

				// SIDEBAR ACTIVE STATE
				// -----------------------------------

				// Find current active item
				var currentItem = $('.sidebar .active').parents('li');

				// hover mode don't try to expand active collapse
				if ( ! useAsideHover() )
					currentItem
							.addClass('active')     // activate the parent
							.children('.collapse')  // find the collapse
							.collapse('show');      // and show it

				// remove this if you use only collapsible sidebar items
				$sidebar.find('li > a + ul').on('show.bs.collapse', function (e) {
					if( useAsideHover() ) e.preventDefault();
				});

				// SIDEBAR COLLAPSED ITEM HANDLER
				// -----------------------------------


				var eventName = isTouch() ? 'click' : 'mouseenter' ;
				var subNav = $();
				$sidebar.on( eventName, '.nav > li', function() {
					if( isSidebarCollapsed() || useAsideHover() ) {

						subNav.trigger('mouseleave');
						subNav = toggleMenuItem( $(this) );
						// Used to detect click and touch events outside the sidebar
						sidebarAddBackdrop();
					}

				});

				var sidebarAnyclickClose = $sidebar.data('sidebarAnyclickClose');

				// Allows to close
				if ( typeof sidebarAnyclickClose !== 'undefined' ) {

					$('.wrapper').on('click.sidebar', function(e){
						// don't check if sidebar not visible
						if( ! $body.hasClass('aside-toggled')) return;

						var $target = $(e.target);
						if( ! $target.parents('.aside').length && // if not child of sidebar
								! $target.is('#user-block-toggle') && // user block toggle anchor
								! $target.parent().is('#user-block-toggle') // user block toggle icon
						) {
							$body.removeClass('aside-toggled');
						}

					});
				}

			});

			function sidebarAddBackdrop() {

				var $backdrop = $('<div/>', { 'class': 'dropdown-backdrop'} );
				console.log($backdrop);
				$backdrop.insertAfter('.aside').on("click mouseenter", function () {

					removeFloatingNav();
				});
				$(".nav-floating").find("a").bind("click",function(){
					menuItemClick.call(this);
				})
			}

			// Open the collapse sidebar submenu items when on touch devices
			// - desktop only opens on hover
			function toggleTouchItem($element){
				$element
						.siblings('li')
						.removeClass('open')
						.end()
						.toggleClass('open');
			}

			// Handles hover to open items under collapsed menu
			// -----------------------------------
			function toggleMenuItem($listItem) {

				removeFloatingNav();

				var ul = $listItem.children('ul');

				if( !ul.length ){
					var title = $($listItem).data('title');
					var layerIndex =layui.layer.tips(title,'#'+$($listItem).attr('id'));
					$($listItem).on('mouseleave',function(env){
						var temp =this;
						var parent =$(temp).parent();
						layui.layer.close(layerIndex);
						$(this).unbind('mouseleave');
					});
					return $();
				}
				if( $listItem.hasClass('open') ) {
					toggleTouchItem($listItem);
					return $();
				}

				var $aside = $('.aside');
				var $asideInner = $('.aside-inner'); // for top offset calculation
				// float aside uses extra padding on aside
				var mar = parseInt( $asideInner.css('padding-top'), 0) + parseInt( $aside.css('padding-top'), 0);

				var subNav = ul.clone().appendTo( $aside );

				toggleTouchItem($listItem);

				var itemTop = ($listItem.position().top + mar) - $sidebar.scrollTop();
				var vwHeight = $win.height();

				subNav
						.addClass('nav-floating')
						.css({
							position: 'absolute',//解决ie下，左侧菜单收起时，悬浮显示二级菜单被遮盖
							top:      itemTop ,
							bottom:   (subNav.outerHeight(true) + itemTop > vwHeight) ? 0 : 'auto'


						});

				subNav.on('mouseleave', function() {
					toggleTouchItem($listItem);
					subNav.remove();
				});

				return subNav;
			}

			function removeFloatingNav() {
				$('.sidebar-subnav.nav-floating').remove();
				$('.dropdown-backdrop').remove();
				$('.sidebar li.open').removeClass('open');
			}

			function isTouch() {
				return $html.hasClass('touch');
			}
			function isSidebarCollapsed() {
				return $body.hasClass('aside-collapsed');
			}
			function isSidebarToggled() {
				return $body.hasClass('aside-toggled');
			}
			function isMobile() {
				return $win.width() < mq.tablet;
			}
			function isFixed(){
				return $body.hasClass('layout-fixed');
			}
			function useAsideHover() {
				return $body.hasClass('aside-hover');
			}

		})(window, document, window.jQuery);
		// TOGGLE STATE
		// -----------------------------------

		(function(window, document, $, undefined){

			$(function(){

				var $body = $('body');
				toggle = new StateToggler();
				$('[data-toggle-state]')
						.on('click', function (e) {

							// e.preventDefault();
							e.stopPropagation();
							var element = $(this),
									classname = element.data('toggleState'),
									target = element.data('target'),
									noPersist = (element.attr('data-no-persist') !== undefined);

							// Specify a target selector to toggle classname
							// use body by default
							var $target = target ? $(target) : $body;
							if(classname) {
								if( $target.hasClass(classname) ) {
									$target.removeClass(classname);
									if( ! noPersist)
										toggle.removeState(classname);
								}
								else {
									$target.addClass(classname);
									if( ! noPersist)
										toggle.addState(classname);
								}

							}
							// some elements may need this when toggled class change the content size
							// e.g. sidebar collapsed mode and jqGrid
							window.setTimeout(function(){
								$(window).resize();
							}, 500);


						});
			});

			// Handle states to/from localstorage
			window.StateToggler = function() {

				var storageKeyName  = 'jq-toggleState';

				// Helper object to check for words in a phrase //
				var WordChecker = {
					hasWord: function (phrase, word) {
						return new RegExp('(^|\\s)' + word + '(\\s|$)').test(phrase);
					},
					addWord: function (phrase, word) {
						if (!this.hasWord(phrase, word)) {
							return (phrase + (phrase ? ' ' : '') + word);
						}
					},
					removeWord: function (phrase, word) {
						if (this.hasWord(phrase, word)) {
							return phrase.replace(new RegExp('(^|\\s)*' + word + '(\\s|$)*', 'g'), '');
						}
					}
				};

				// Return service public methods
				return {
					// Add a state to the browser storage to be restored later
					addState: function(classname){
						var data = $.localStorage.get(storageKeyName);

						if(!data)  {
							data = classname;
						}
						else {
							data = WordChecker.addWord(data, classname);
						}

						$.localStorage.set(storageKeyName, data);
					},

					// Remove a state from the browser storage
					removeState: function(classname){
						var data = $.localStorage.get(storageKeyName);
						// nothing to remove
						if(!data) return;

						data = WordChecker.removeWord(data, classname);

						$.localStorage.set(storageKeyName, data);
					},

					// Load the state string and restore the classlist
					restoreState: function($elem) {
						var data = $.localStorage.get(storageKeyName);
						window.setTimeout(function(){
							$(window).resize();
						}, 500);
						// nothing to restore
						if(!data) return;
						$elem.addClass(data);
					}

				};
			};
			/**/
		})(window, document, window.jQuery);

		function getRequest() {
			var url = decodeURI(location.search); //获取url中"?"符后的字串
			var theRequest = new Object();
			if (url.indexOf("?") != -1) {
				var str = url.substr(1);
				strs = str.split("&");
				for(var i = 0; i < strs.length; i ++) {
					var index = strs[i].indexOf('=');
					if(index!=-1){
						var key = strs[i].substring(0,index);
						var val = unescape(strs[i].substring(index+1));
						theRequest[key]=val;
					}
				}
			}
			return theRequest;
		}
		/**
		 * 打开一个通过URL传来的菜单
		 */
		function _addDefultTab(){

			var params = getRequest();
			var id = params['_redict_menu_id'];
			var name = params['_redict_menu_name'];
			var params = params['_redict_menu_param'];
			if(id == undefined || name == undefined){
				var m = menus[0];
				var menuId = "m-"+m.id;
				if(m.childs!=null&&m.childs.length>0){
					$($('#'+menuId).find('a')[0]).click();
					var child= m.childs[0];
					var childId = 'm-'+child.id;
					var childName = child.name;
					var childUrl = child.url;
//			tabAdd(childId,childName,childUrl);
//			selectMenu(childId);
					$($('#'+menuId).find('a')[1]).click();
				}else{
					var name = m.name;
					var url = m.url;
					$('#'+menuId).find('a').click();
				}
				return;
			}else{
				var url = location.href;
				if(url.indexOf("?")!=-1){
					url = url.substring(0,url.indexOf('?'));
				}
				if(params!=undefined){
					params = params.replace(';','&')
					url +='?'+params;
				}
				tabAdd(id,name,url);
				if(menuParent[id]!=undefined && menuParent[id]!=''){
					$($('#m-'+menuParent[id]).find('a')[0]).click();
				}
				selectMenu("m-"+id);
			}
		}
		function GetQueryString(name)
		{
			var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
			var r = window.location.search.substr(1).match(reg);
			if(r!=null)return  unescape(r[2]); return null;
		}

		function loginOut(){
			window.location.replace("loginForm.jsp");
			/*
            $.ajax({
                type: "POST",
                url: "/hrm/user/loginOut",
                async: true,
                data:{

                    },
                dataType: "json",
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                   alert("出错了，请于管理员联系");
                },
                success: function (json) {

                    window.location.replace("/hrm/");

                }
            });
        */
		}
		$(function(){
			var $body = $('body');
			new StateToggler().restoreState( $body );
			loadMenu();
			layui.use(["jqtab"],function(){
				var funTab =  $("#funTab");
				menutab = funTab.btab();
				menutab.resizeTab();
				setTimeout(_addDefultTab,200);
			});
			//var menuUserName=GetQueryString("menuUserName");
			//$("#userNameSpan").html(menuUserName);
		})

	</script>
</html>